package com.yonyou.marketing.app.api.service;

import java.util.List;
import java.util.Map;

import org.marketing.common.Response;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.yonyou.marketing.app.api.dto.NaireCommit;


@FeignClient(name="SERVICE-QUESTIONNAIRE" )
public interface QuestionnaireServiceInterface {

	@RequestMapping(value = "/questionnaire/api/v1/questionType", method = RequestMethod.GET)
	Response<List<Map<String, Object>>> questionType(@RequestParam("queryType") Integer queryType,
            @RequestParam("userId_") String userId_);
	
	@RequestMapping(value = "/questionnaire/api/v1/explainView", method = RequestMethod.GET)
	Response<Map<String, Object>> explainView(@RequestParam("qneId") Integer qneId);
	
	@RequestMapping(value = "/questionnaire/api/v1/questionNaireDetail", method = RequestMethod.GET)
	Response<Map<String, Object>> questionNaireDetail(@RequestParam("qneId") Integer qneId,
			@RequestParam("userId_") String userId_);
	
	@RequestMapping(value = "/questionnaire/api/v1/questionResultDetail", method = RequestMethod.GET)
	Response<Map<String, Object>> questionResultDetail(@RequestParam("qneId") Integer qneId,
			@RequestParam("userId_") String userId_);
	
	@RequestMapping(value = "/questionnaire/api/v1/commitNaire", method = RequestMethod.POST)
	Response<Map<String, Object>> commitNaire(@RequestBody NaireCommit commit
			,@RequestParam("userId_") String userId_);
}
